<?if($this->errorMessage) {?>
    <h4 class="alert_error"><?=$this->errorMessage?></h4>
<? } ?>

<?if($this->isInsert) {?>
    <h4 class="alert_success">Категория добавлена!</h4>
<? } ?>

<div class="form">
<form method="POST" action="<?$this->url(array('controller'=>'categories', 'action'=>'add'))?>">
    <div><label>Название: </label><input type="text" value="<?=$this->category['name']?>" name='name'></div>
    <div>
        <label>Отображать: </label>
            Да<input type="radio" name="is_visible" value="1" <?=($this->category['is_visible'] == 1) ? 'checked' : ''?>>
            Нет<input type="radio" name="is_visible" value="0" <?=($this->category['is_visible'] == 0) ? 'checked' : ''?>>
    </div>
    <input type="submit" name="submit" value="Редактировать">
</form>
</div>

